<#assign module="car"/>

<@override name="header">
</@override>

<@override name="body">

	<div class="row">
		<div class="col-md-12">
			<div class="panel panel-default" style="height: 400px;">
				<div class="panel-heading">
					填写汽车类型信息
			    </div>
			    <#if message??>
					<div class="alert alert-warning">${message}</div>
				</#if>
			    <div class="panel-body">
    				<form id="submit_form" action="${ctx}/carType/add" class="form-horizontal" method="post">
		               
		                <div class="form-group">
		                    <label class="col-sm-3 control-label">汽车类型名称：</label>
		                    <div class="col-sm-3">
		                    	<input class="form-control"  name="name" type="text" value="${carType.name?if_exists}" required />
		                    </div>
		                </div>
		                
		                <div class="form-group">
		                    <label class="col-sm-3 control-label">汽车类型顺序：</label>
		                    <div class="col-sm-3">
		                    	<input type="number" class="form-control" name="sequence" value="${carType.sequence?if_exists}" min="0">
		                    </div>
		                </div>
		                
		                <div class="form-group" style="margin-left:10px;">
			                <label class="col-sm-3 control-label"></label>
			                <input type="submit" class="btn btn-primary" value="保存">
			                <input type="button" class="btn btn-default" onclick="window.location.href = '${ctx}/carType/list';" value="返回">
			            </div>
					</form>
        		</div>
			</div>
		</div>
	</div>

</@override>
<@override name="footer">

</@override>
<@extends name="../layout.ftl"/>